package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.apache.shiro.authz.AuthorizationException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author wangdezhao
 * @date 2021/6/6
 * @description
 *  todo  见 exception包 配置了 事务抛出sql异常回滚和运行时异常的处理器
 */
public class ExceptionControllerAdvise {
//    @ExceptionHandler(AuthorizationException.class)
//    @ResponseBody
//    public BaseRespVo handlerAuthorizationException(Exception e){
//        return BaseRespVo.ok("resp");
//    }
}
